function [ places ] = getBomberPlaces( graph, pos, lag, lastShip )
%% The function getBomberPlaces is used for the Ferguson bomber and returns 
%% the possible bomber places by a recursive search
    places = [];
    lag = lag -1;
    n=length(graph);
    if (lag==0)
        j = 0;
        for i=1:n
            if (graph(pos,i)==1 && i~=lastShip)
               j = j + 1;
               places(j) = i;
            end
        end
    else
        for i=1:n
            if (graph(pos,i)==1 && i~=lastShip)
                places = [places, getBomberPlaces(graph, i, lag, lastShip)];
            end
        end
    end
    places = unique(places);
end

